"""
homework02 - 双色球随机选号（实现机选N注）

红色球01-33，选择不重复的6个球，按从小到大排列
蓝色球01-16，选择一个球，跟在红色球的后面

Author: Administrator
Date: 2024/1/18
"""
import random

n = int(input('机选几注：'))
for _ in range(n):
    red_balls = [i for i in range(1, 34)]
    blue_balls = [i for i in range(1, 17)]
    selected_balls = random.sample(red_balls, 6)
    selected_balls.sort()
    # selected_balls.append(random.choice(blue_balls))
    # selected_balls += random.choices(blue_balls, k=1)
    selected_balls.extend(random.choices(blue_balls, k=1))
    # print(selected_balls)
    for ball in selected_balls[:-1]:
        print(f'{ball:0>2d}', end=' ')
    print(f'| {selected_balls[-1]:0>2d}')